<!doctype html>
<html>

	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width, maximum-scale = 1, minimum-scale=1" />
		<meta name="apple-mobile-web-app-capable" content="yes" />
		<meta name="viewport" content="target-densitydpi=device-dpi,width=640,user-scalable=0">
		<title>评估师</title>
		<link href="css/style.css" rel="stylesheet" type="text/css" />
		<script text="type/javascript" src="js/jquery.js"></script>
		<script src="js/mui.min.js"></script>;
		<script src="js/app.js"></script>;
		<script type="text/javascript" language="javascript" src="js/jquery-1.8.2.min.js"></script>
	</head>

	<body>
		
		<section class="section">
			<div class="top">
				<a href="" class="back"><img src="images/back.png"></a>
				<a class="pro_t">评估师展示</a>
			</div>
			<div class="clear"></div>
			<div class="pos-top">
				<div class="assess">
					<ul id="list">
		

					</ul>
				</div>
			</div>
  <div id="light" class="content"><a href = "javascript:void(0)" onclick = "document.getElementById('light').style.display='none';document.getElementById('fade').style.display='none'" ></a>
    <ul>
      <li class="buycar"><a class="gopage" data-url="buycar.html" data-param="" style="color:#FFF ; display:block;">我要买车</a></li>
      <li class="sellcar"><a class="gopage" data-url="sellcar.html" data-param="" style="color:#333;display:block;">我要卖车</a></li>
    </ul>
  </div>
			<!--底部导航-->

		</section>
	</body>

</html>
<script>
	(function(mui, doc) {
		mui.init({
			statusBarBackground: '#000000'
		});

		mui.plusReady(function() {
			var network = true;
			if(mui.os.plus) {
				mui.plusReady(function() {
					if(plus.networkinfo.getCurrentType() == plus.networkinfo.CONNECTION_NONE) {
						network = false;
					}
				});
	mui("body").on("tap", ".gopage", function() {

						var this_obj = jQuery(this);
						var url = this_obj.data("url");
						var id = this_obj.data("param");
				

						mui.openWindow({
							id: url,
							url: url,
							extras: {
								id: id,
							},
							waiting: {
								autoShow: false,
								
							}
						})
						
					
					});
				getlist();
			}

		});

	}(mui, document));

	function getlist() {

		var postData = {
			apiUrl: web_url + "page_cardeal/getrasierlist.shtml",
			datas: {

			}
		};

		app.postServer(postData,
			function(result) {
var html="";
				$.each(result.list, function(index, item) {
          html+='<li><div class="asstu"><img src="'+resource_url+item.avatar+'"></div>'+
							'<p>'+item.name+'</p>'+
							'<p>工作年限：'+item.work_year+'</p>'+
							'<p>擅长车系：'+item.skilled+'</p>'+
							'<p>个人简介：'+item.intro+'</p>'+
							'<input type="button" value="预约" class="yy-but" onclick="show('+item.id+')" >'+
						'</li>';
				});
				$("#list").html(html);

			},
			function(err) {
				if(err) {
					plus.nativeUI.toast(err);
					return;
				}
			}
		);
	}
	function show(id){

		
		$("#light").css("display","block");
		
		
	}
</script>